Optimal. Leaf size=102 \[ \frac {(2 c+3 d) \tan (e+f x)}{15 f \left (a^3 \sec (e+f x)+a^3\right )}+\frac {(2 c+3 d) \tan (e+f x)}{15 a f (a \sec (e+f x)+a)^2}+\frac {(c-d) \tan (e+f x)}{5 f (a \sec (e+f x)+a)^3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.12, antiderivative size = 102, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.103, Rules used = {4000, 3796, 3794} \[ \frac {(2 c+3 d) \tan (e+f x)}{15 f \left (a^3 \sec (e+f x)+a^3\right )}+\frac {(2 c+3 d) \tan (e+f x)}{15 a f (a \sec (e+f x)+a)^2}+\frac {(c-d) \tan (e+f x)}{5 f (a \sec (e+f x)+a)^3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3794
Rule 3796
Rule 4000
Rubi steps
\begin {align*} \int \frac {\sec (e+f x) (c+d \sec (e+f x))}{(a+a \sec (e+f x))^3} \, dx &=\frac {(c-d) \tan (e+f x)}{5 f (a+a \sec (e+f x))^3}+\frac {(2 c+3 d) \int \frac {\sec (e+f x)}{(a+a \sec (e+f x))^2} \, dx}{5 a}\\ &=\frac {(c-d) \tan (e+f x)}{5 f (a+a \sec (e+f x))^3}+\frac {(2 c+3 d) \tan (e+f x)}{15 a f (a+a \sec (e+f x))^2}+\frac {(2 c+3 d) \int \frac {\sec (e+f x)}{a+a \sec (e+f x)} \, dx}{15 a^2}\\ &=\frac {(c-d) \tan (e+f x)}{5 f (a+a \sec (e+f x))^3}+\frac {(2 c+3 d) \tan (e+f x)}{15 a f (a+a \sec (e+f x))^2}+\frac {(2 c+3 d) \tan (e+f x)}{15 f \left (a^3+a^3 \sec (e+f x)\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.34, size = 135, normalized size = 1.32 \[ \frac {\sec \left (\frac {e}{2}\right ) \cos \left (\frac {1}{2} (e+f x)\right ) \left (-15 (2 c+d) \sin \left (e+\frac {f x}{2}\right )+5 (8 c+3 d) \sin \left (\frac {f x}{2}\right )+20 c \sin \left (e+\frac {3 f x}{2}\right )-15 c \sin \left (2 e+\frac {3 f x}{2}\right )+7 c \sin \left (2 e+\frac {5 f x}{2}\right )+15 d \sin \left (e+\frac {3 f x}{2}\right )+3 d \sin \left (2 e+\frac {5 f x}{2}\right )\right )}{30 a^3 f (\cos (e+f x)+1)^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.45, size = 93, normalized size = 0.91 \[ \frac {{\left ({\left (7 \, c + 3 \, d\right )} \cos \left (f x + e\right )^{2} + 3 \, {\left (2 \, c + 3 \, d\right )} \cos \left (f x + e\right ) + 2 \, c + 3 \, d\right )} \sin \left (f x + e\right )}{15 \, {\left (a^{3} f \cos \left (f x + e\right )^{3} + 3 \, a^{3} f \cos \left (f x + e\right )^{2} + 3 \, a^{3} f \cos \left (f x + e\right ) + a^{3} f\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 1.39, size = 80, normalized size = 0.78 \[ \frac {3 \, c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{5} - 3 \, d \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{5} - 10 \, c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{3} + 15 \, c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 15 \, d \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )}{60 \, a^{3} f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.73, size = 64, normalized size = 0.63 \[ \frac {\frac {\left (c -d \right ) \left (\tan ^{5}\left (\frac {e}{2}+\frac {f x}{2}\right )\right )}{5}-\frac {2 \left (\tan ^{3}\left (\frac {e}{2}+\frac {f x}{2}\right )\right ) c}{3}+\tan \left (\frac {e}{2}+\frac {f x}{2}\right ) c +\tan \left (\frac {e}{2}+\frac {f x}{2}\right ) d}{4 f \,a^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.33, size = 115, normalized size = 1.13 \[ \frac {\frac {c {\left (\frac {15 \, \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} - \frac {10 \, \sin \left (f x + e\right )^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}} + \frac {3 \, \sin \left (f x + e\right )^{5}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{5}}\right )}}{a^{3}} + \frac {3 \, d {\left (\frac {5 \, \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} - \frac {\sin \left (f x + e\right )^{5}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{5}}\right )}}{a^{3}}}{60 \, f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.74, size = 66, normalized size = 0.65 \[ \frac {\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )\,\left (15\,c+15\,d-10\,c\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^2+3\,c\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^4-3\,d\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^4\right )}{60\,a^3\,f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {\int \frac {c \sec {\left (e + f x \right )}}{\sec ^{3}{\left (e + f x \right )} + 3 \sec ^{2}{\left (e + f x \right )} + 3 \sec {\left (e + f x \right )} + 1}\, dx + \int \frac {d \sec ^{2}{\left (e + f x \right )}}{\sec ^{3}{\left (e + f x \right )} + 3 \sec ^{2}{\left (e + f x \right )} + 3 \sec {\left (e + f x \right )} + 1}\, dx}{a^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________